package com.frejoys.common.vo.app;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class GoodsSimpleVo {

    @Schema(type = "Integer", name = "id", description = "商品id", required = true, defaultValue = "1")
    private Integer id;
    @Schema(type = "String", name = "name", description = "商品名称", required = true, defaultValue = "八匹狼")
    private String name;
    @Schema(type = "String", name = "cover", description = "商品封面图", required = true, defaultValue = "xxx/xxx.jpg")
    private String cover;
    @Schema(type = "Integer", name = "soldCount", description = "售出数量", required = true, defaultValue = "100")
    private Integer soldCount;
    @Schema(type = "BigDecimal", name = "oriPrice", description = "原价", required = true, defaultValue = "100")
    private BigDecimal oriPrice;
    @Schema(type = "BigDecimal", name = "price", description = "现价", required = true, defaultValue = "100")
    private BigDecimal price;
}
